/**
 * 用户信息相关
 * 包括注册/登陆/登出
 */
const router = require('koa-router')()

router.prefix('/users')

const App = require("../controllers/app");
const User = require("../controllers/user")
//注册
router.post('/register',App.hasBody, User.register);
//登陆
router.post('/login',App.hasBody,User.login)

module.exports = router
